<?php	session_start();		include("config.php");		// Detect if 197website is not installed, auto redirect to installation script.	if(!APP_INSTALL){		header("Location:install/index.php");		exit();	}		mysql_connect(DB_HOST, DB_USER, DB_PASS);	mysql_select_db(DB_NAME);	mysql_query("SET NAMES " . DB_CHAR);		if(function_exists("date_default_timezone_set")){		date_default_timezone_set(APP_TZ);	}		// Load settings from database.	$result = mysql_query("SELECT * FROM `197_settings`");	$set = array();	while($row = mysql_fetch_assoc($result)){		$set[$row['name']] = $row['value'];	}		?><?php if(isset($_GET['ajax']) && $_GET['ajax'] == true){ define('AJAX', true); } else { define('AJAX', false); } ?>